extends TextureRect

var id=-1

func loadi(it,n):
	id=it
	texture=sys.item[it][0]
	$"t".bbcode_text="*"+String(n)+"\t"+sys.item[it][1]

func _on_i_gui_input(event):
	if(event is InputEventMouseButton):
		if(event.button_index==BUTTON_LEFT&&event.pressed):
			sys.camera.item_clicked(id)
